<!DOCTYPE html>
<html>
  <head>
    <title>HelloWorld.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
    
    <script type="text/javascript" src="jquery-3.2.1.js"></script>
    <script type="text/javascript">
    	
    	//$(function(){})相当于window.onload
    	$(function(){
    	
    		//$("button")选择所有button标签，并添加click方法
    		$("button").click(function(){
    			alert("helloworld");
    			//弹出button标签的文本值
    			alert($(this).text());
    		});
    	});
    
    </script>
    

  </head>
  
  <body>
    <button>ClickMe</button>
  </body>
</html>
